package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("项目交维记录表")
@TablePlus(name = "dict_project_jw")
public class DictProjectJw extends BaseModel {

    @Notes("项目id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictProject.class)
    private Long project_id;

    // 移交
    @Notes("移交人id")
    @ColumnPlus()
    private int transfer_user_id;

    @Notes("移交人姓名")
    @ColumnPlus(default_val = "''", length = "20")
    private String transfer_user_name;

    @Notes("移交时间")
    @ColumnPlus()
    private Date transfer_time;

    @Notes("移交备注")
    @ColumnPlus(default_val = "''", length = "200")
    private String transfer_remark;

    // 受理
    @Notes("受理人id")
    @ColumnPlus()
    private int accept_user_id;

    @Notes("受理人姓名")
    @ColumnPlus(default_val = "''", length = "20")
    private String accept_user_name;

    @Notes("受理时间")
    @ColumnPlus()
    private Date accept_time;

    @Notes("受理备注")
    @ColumnPlus(default_val = "''", length = "200")
    private String accept_remark;

    // 状态
    @Notes("交维的状态，默认1，1处理中，2，已受理，3已驳回。受理记录表 dict_project_review")
    @ColumnPlus(default_val = "1", length = "2")
    private int transfer_state;

    // 指派
    @Notes("指派给xxid")
    @ColumnPlus()
    private int assign_user_id;

    @Notes("指派给xx姓名")
    @ColumnPlus(default_val = "''", length = "20")
    private String assign_user_name;

    @Notes("指派给xx说明")
    @ColumnPlus(default_val = "''", length = "200")
    private String assign_explain;

    @Notes("指派时间")
    @ColumnPlus()
    private Date assign_time;

}
